<!DOCTYPE html>
<html lang="en">
<head>
	<base href="http://127.0.0.1:8011/" />
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="xxf">
    <title>信息平台</title>
	<link href="css/xxf.css" rel="stylesheet">
    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- MetisMenu CSS -->
    <link href="sb2/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="sb2/dist/css/sb-admin-2.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="sb2/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
</head>
<body>
    <div id="wrapper">
        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">菜单</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <img alt="" src="img/people.png" class="img-circle" width="50" height="50">
                <span class="navbar-brand"><a href="http://127.0.0.1:8011/admin">信息平台</a>(登录176次)</span>
            </div>
            <!-- /.navbar-header -->
            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-envelope fa-fw"></i>消息
                    </a>
                    <!-- /.dropdown-user -->
                </li>
                
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>徐秀峰 <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="javascript:navObj.userinfo();"><i class="fa fa-user fa-fw"></i> 用户信息</a>
                        </li>
                        <li><a href="javascript:navObj.setting();"><i class="fa fa-gear fa-fw"></i> 设置</a>
                        </li>
                        <li><a href="javascript:navObj.about();"><i class="fa fa-mobile-phone fa-fw"></i> 关于</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="out"><i class="fa fa-sign-out fa-fw"></i> 安全退出</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                
                <!-- /.dropdown -->
            </ul>

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="搜索...">
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                            <!-- /input-group -->
                        </li>
                                                <li>
                           	<a href="usermanage" ><i class="fa fa-fw fa-dashboard"></i> 用户管理</a>
                        </li>
                                                <li>
                           	<a href="qxmanage" ><i class="fa fa-fw fa-dashboard"></i> 权限管理</a>
                        </li>
                                                <li>
                           	<a href="news" ><i class="fa fa-fw fa-dashboard"></i> 信息发布</a>
                        </li>
                                                <li>
                           	<a href="pxb" ><i class="fa fa-fw fa-dashboard"></i> 培训班管理</a>
                        </li>
                                                <li>
                           	<a href="pxy" ><i class="fa fa-fw fa-dashboard"></i> 学员和课程管理</a>
                        </li>
                                                <li>
                           	<a href="rxy" ><i class="fa fa-fw fa-dashboard"></i> 学员住宿</a>
                        </li>
                                                <li>
                           	<a href="fxy" ><i class="fa fa-fw fa-dashboard"></i> 学员收费</a>
                        </li>
                                                <li>
                           	<a href="pxs" ><i class="fa fa-fw fa-dashboard"></i> 培训学员查询</a>
                        </li>
                                            </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>    
<!-- DataTables Responsive CSS -->
    <link href="http://127.0.0.1:8011/sb2/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
							<span class="xxf_red" style="float:right;">[!!!系统数据备份，请在空闲时间操作！<input type="button" value="备份" onclick="bak()">!!!]</span>
                            权限管理<br>
                            <select id="uid">
                                	<option>选择人员</option>
                            	                                    <option value="1">1陈晓彬(13368221916)</option>
                                	                                    <option value="2">2夏庆宁(13500326618)</option>
                                	                                    <option value="4">4陈勇(13036315027)</option>
                                	                                    <option value="5">5刘敏慧(13436082218)</option>
                                	                                    <option value="6">6冯长明(18696501916)</option>
                                	                                    <option value="7">7舒梅(18623111801)</option>
                                	                                    <option value="8">8刘美铃(18623323886)</option>
                                	                                    <option value="9">9杨胜坤(17783113564)</option>
                                	                                    <option value="10">10刘红宇(18580420895)</option>
                                	                                    <option value="11">11曾伟宁(15215189770)</option>
                                	                                    <option value="12">12张明(13608310979)</option>
                                	                                    <option value="13">13刘小兵(15023185563)</option>
                                	                                    <option value="14">14刘力维(13983032357)</option>
                                	                                    <option value="15">15王鸿娅(15922818100)</option>
                                	                                    <option value="16">16刘然(13983262102)</option>
                                	                                    <option value="17">17周鹏(13072318193)</option>
                                	                                    <option value="18">18文萍(18983942447)</option>
                                	                                    <option value="19">19冉崇芳(13896351133)</option>
                                	                                    <option value="20">20罗玉华(18680815295)</option>
                                	                                    <option value="21">21章咏梅(13996849999)</option>
                                	                                    <option value="22">22吴康(18696670310)</option>
                                	                                    <option value="23">23王浩宇(18602352911)</option>
                                	                                    <option value="24">24刘涛(13983000714)</option>
                                	                                    <option value="25">25袁瑞雪(18723294094)</option>
                                	                                    <option value="26">26郑玮(13628371104)</option>
                                	                                    <option value="27">27崔文俊(13212321212)</option>
                                	                                    <option value="28">28杨练(13647696268)</option>
                                	                                    <option value="29">29夏娟(13452899484)</option>
                                	                                    <option value="30">30徐秀峰(18983800300)</option>
                                	                                    <option value="31">31唐新春(13983113389)</option>
                                	                                    <option value="32">32余秋轩(13983703150)</option>
                                	                                    <option value="33">33魏恒(18680883474)</option>
                                	                                    <option value="34">34王千(18696544815)</option>
                                	                                    <option value="35">35雷洪波(13996335120)</option>
                                	                                    <option value="36">36邹小平(13983738478)</option>
                                	                                    <option value="37">37刘承云(13637784690)</option>
                                	                                    <option value="38">38姚毅(18523019727)</option>
                                	                                    <option value="39">39杨本杰(13883448127)</option>
                                	                                    <option value="40">40夏正洋(18623626817)</option>
                                	                                    <option value="41">41陈超(18008367725)</option>
                                	                                    <option value="42">42杨志刚(13617638238)</option>
                                	                                    <option value="43">43赵达智(18223218670)</option>
                                	                                    <option value="44">44侯敏(13883112574)</option>
                                	                                    <option value="45">45陈玉婷(13637975121)</option>
                                	                                    <option value="46">46代耀华(15825953321)</option>
                                	                                    <option value="47">47谭秋璨(18623503533)</option>
                                	                                    <option value="48">48陶婷婷(15086875477)</option>
                                	                                    <option value="49">49徐欢(13594700033)</option>
                                	                                    <option value="50">50杜思维(13983955850)</option>
                                	                                    <option value="52">52杨柯(15025318198)</option>
                                	                                    <option value="53">53罗光亮(13667684592)</option>
                                	                                    <option value="54">54陈丽(13527514251)</option>
                                	                                    <option value="55">55杜思勇(15023637334)</option>
                                	                                    <option value="56">56宋凌燕(13635375499)</option>
                                	                                    <option value="57">57刘春梅(13609404019)</option>
                                	                                    <option value="58">58李娇颖(13678466212)</option>
                                	                                    <option value="59">59陈蓉(13668030038)</option>
                                	                                    <option value="60">60王馥一(15723254718)</option>
                                	                                    <option value="61">61贺良宵(18523159012)</option>
                                	                                    <option value="62">62艾清(18996210643)</option>
                                	                                    <option value="63">63骆世平(18696752577)</option>
                                	                                    <option value="64">64付忠(18696518294)</option>
                                	                                    <option value="65">65李欣键(18502347524)</option>
                                	                                    <option value="66">66涂秀凤(18680893337)</option>
                                	                                    <option value="67">67李佳颐(18523082262)</option>
                                	                                    <option value="68">68李世波(13068301681)</option>
                                	                                    <option value="69">69吕静(13101131169)</option>
                                	                                    <option value="70">70卢秋琳(18716330991)</option>
                                	                                    <option value="71">71傅成波(18581345581)</option>
                                	                                    <option value="72">72龙辉娥(13638331375)</option>
                                	                                    <option value="73">73雷鸣(13883892796)</option>
                                	                                    <option value="74">74李丹(13272803022)</option>
                                	                                    <option value="75">75杨蓉(18323916607)</option>
                                	                                    <option value="77">77测试人(123456789)</option>
                                	                            </select>
                            <select id="lid">
                                	<option>选择栏目</option>
                            	                                    <option value="1">权限管理</option>
                                	                                    <option value="2">首页</option>
                                	                                    <option value="3">用户管理</option>
                                	                                    <option value="4">学生信息批量录入</option>
                                	                                    <option value="5">学生信息查询(总体)</option>
                                	                                    <option value="6">学生信息查询(班主任)</option>
                                	                                    <option value="7">学生信息统计(总体)</option>
                                	                                    <option value="8">学生信息统计(班主任)</option>
                                	                                    <option value="9">学生信息查询(财务)</option>
                                	                                    <option value="10">学生信息统计(财务)</option>
                                	                                    <option value="11">培训班管理</option>
                                	                                    <option value="12">人员系统分组</option>
                                	                                    <option value="13">学员和课程管理</option>
                                	                                    <option value="14">教职工通讯录</option>
                                	                                    <option value="15">信息发布</option>
                                	                                    <option value="16">培训学员查询</option>
                                	                                    <option value="17">学员住宿</option>
                                	                                    <option value="18">学员收费</option>
                                	                            </select>
                            <input type="button" id="add" value="授权" onclick="add()">
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>姓名</th>
                                        <th>栏目</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	                                    <tr class="odd gradeA" id='27'>
                                    	<td>30</td>
                                    	<td>徐秀峰 18983800300</td>
                                        <td>权限管理</td>
                                        <td><a href="javascript:del(27)">删除</a></td>
                                    </tr>
                                	                                    <tr class="even gradeA" id='28'>
                                    	<td>30</td>
                                    	<td>徐秀峰 18983800300</td>
                                        <td>用户管理</td>
                                        <td><a href="javascript:del(28)">删除</a></td>
                                    </tr>
                                	                                    <tr class="odd gradeA" id='29'>
                                    	<td>30</td>
                                    	<td>徐秀峰 18983800300</td>
                                        <td>培训班管理</td>
                                        <td><a href="javascript:del(29)">删除</a></td>
                                    </tr>
                                	                                    <tr class="even gradeA" id='30'>
                                    	<td>30</td>
                                    	<td>徐秀峰 18983800300</td>
                                        <td>学员和课程管理</td>
                                        <td><a href="javascript:del(30)">删除</a></td>
                                    </tr>
                                	                                    <tr class="odd gradeA" id='31'>
                                    	<td>30</td>
                                    	<td>徐秀峰 18983800300</td>
                                        <td>学员收费</td>
                                        <td><a href="javascript:del(31)">删除</a></td>
                                    </tr>
                                	                                    <tr class="even gradeA" id='32'>
                                    	<td>30</td>
                                    	<td>徐秀峰 18983800300</td>
                                        <td>学员住宿</td>
                                        <td><a href="javascript:del(32)">删除</a></td>
                                    </tr>
                                	                                    <tr class="odd gradeA" id='33'>
                                    	<td>30</td>
                                    	<td>徐秀峰 18983800300</td>
                                        <td>培训学员查询</td>
                                        <td><a href="javascript:del(33)">删除</a></td>
                                    </tr>
                                	                                    <tr class="even gradeA" id='34'>
                                    	<td>30</td>
                                    	<td>徐秀峰 18983800300</td>
                                        <td>信息发布</td>
                                        <td><a href="javascript:del(34)">删除</a></td>
                                    </tr>
                                	                                </tbody>
                            </table>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
             </div>
        </div>
        <!-- /#page-wrapper -->
  </div>
        <!-- DataTables JavaScript -->
    </div>
    <!-- /#wrapper -->
    <!-- jQuery -->

    <script src="js/jquery.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>
    <!-- Metis Menu Plugin JavaScript -->
    <script src="sb2/vendor/metisMenu/metisMenu.min.js"></script>
    <!-- Custom Theme JavaScript -->
    <script src="sb2/dist/js/sb-admin-2.js"></script>
    <script src="js/jquery.xxfset.js"></script>
    
<script type="text/javascript">
var navObj={
		setting:function(){
			$.xconfirm("原密码 <input type='password' id='navObj_pass0'><br><br>新密码 <input type='password' id='navObj_pass1'><br><br>新密码 <input type='password' id='navObj_pass2'>",function(tf){
				if(tf){
					var ypass=$("#navObj_pass0").val();
					var xpass1=$("#navObj_pass1").val();
					var xpass2=$("#navObj_pass2").val();
					if(ypass.length<1||xpass1.length<1||xpass2.length<1){
						alert("输入错误，修改失败！");
					}else{
						if(xpass1!=xpass2){
							alert("新密码不一致，修改失败！");
						}else{
							$.xloading(1);
							$.post("upassword",{uid:30,pass1:ypass,pass2:xpass1},function(data){
								if(data!=0){
									$.xloading(0);
									alert("修改成功！");
									location.href="out";
								}else{
									$.xloading(0);
									alert("原密码不正确，修改失败！");
								}
							});
						}
					}
				}
			});
		},
		about:function(){
			$.xalert("当前系统版本v2.0");
		}
};
</script>
</body>
</html>    <script src="http://127.0.0.1:8011/sb2/vendor/datatables/js/jquery.dataTables.js"></script>
    <script src="http://127.0.0.1:8011/sb2/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="http://127.0.0.1:8011/sb2/vendor/datatables-responsive/dataTables.responsive.js"></script>
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
            responsive: true,
            "aaSorting": [[ 0, "desc" ]]
        });
    });
	function bak(){
		$.post("qxmanage",{type:"bak"},function(data){
			$.xalert(data);
		});
	}
    function del(ulid){
		$.xconfirm("删除后无法恢复，确定要删除此条记录么？",function(data){
 			if(data){
				$.xloading(1);
				$.post("http://127.0.0.1:8011/qxmanage",{type:'del',ulid:ulid},function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("删除失败");
					}else{
						window.location.reload();
					}
				}); 
			} 
		});
    }
    function add(){
    	$.xconfirm("确定添加？",function(data){
 			if(data){
 	 			var uid=$("#uid").val();
 	 			var lid=$("#lid").val();
				$.xloading(1);
				$.post("http://127.0.0.1:8011/qxmanage",{type:'add',uid:uid,lid:lid},function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("添加失败");
					}else{
						window.location.reload();
					}
				}); 
			} 
		});
    }    
    </script>